
function logged(value,context) {
    console.log('value', value)
    console.log('context', context)
    if (context.kind === 'method') {
        return function (...args) {
            console.log(`--${context.name}${args.join(',')}`)
            const reuslt = value.call(this, ...args)
            console.log(`ending${context.name}`)
            return reuslt
        }
    }
}
class Class{
    @logged
    private static sum(a,b){
        return a + b
    }
    public static ddd(){
        return Class.sum(2,3)
    }
}
let result = Class.ddd()
console.log('result', result)